package com.eye.catcher.config;

import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.stereotype.Component;

@Component
public class MyMetaObjectHandler implements MetaObjectHandler {

    @Override
    public void insertFill(MetaObject metaObject) {
        this.strictInsertFill(metaObject, "status", String.class, "1");
        this.strictInsertFill(metaObject, "isGenerateNum", String.class, "0");
    }

    @Override
    public void updateFill(MetaObject metaObject) {

    }
}